/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoeducation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.campusinfoeducation.entity.CampusinfoMajor;
import com.lczyfz.campusinfo.modules.campusinfoeducation.dao.CampusinfoMajorDao;

/**
 * 专业管理Service
 *
 * @author yt
 * @version 2017-10-18
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoMajorService extends CrudService<CampusinfoMajorDao, CampusinfoMajor> {
    @Autowired
    private CampusinfoMajorDao campusinfoMajorDao;
    public CampusinfoMajor get(String id) {
        return super.get(id);
    }

    public List<CampusinfoMajor> findList(CampusinfoMajor campusinfoMajor) {
        return super.findList(campusinfoMajor);
    }

    public Page<CampusinfoMajor> findPage(Page<CampusinfoMajor> page, CampusinfoMajor campusinfoMajor) {
        return super.findPage(page, campusinfoMajor);
    }
    public CampusinfoMajor getByName(CampusinfoMajor campusinfoMajor){
        return campusinfoMajorDao.getByName(campusinfoMajor);
    }
    @Transactional(readOnly = false)
    public void save(CampusinfoMajor campusinfoMajor) {
        super.save(campusinfoMajor);
    }

    @Transactional(readOnly = false)
    public void delete(CampusinfoMajor campusinfoMajor) {
        super.delete(campusinfoMajor);
    }

}